
import axios from 'axios';


const baseUrl = 'http://101.201.103.202:9098'
// const baseUrl = 'http://127.0.0.1:9098'

const api = {
    getResumeList() {
        return axios.get(baseUrl + '/resumes', {
            headers: {
                'Access-Control-Allow-Origin': '',
                'Access-Control-Allow-Credentials': true
            }
        });
    },
    editResume(params) {
        debugger
        axios({
            url: baseUrl + '/resumes/1', 
            method: 'post',
            data: JSON.stringify(params),
            headers: {
                'Access-Control-Allow-Origin': '',
                'Access-Control-Allow-Credentials': true,
                'Content-Type':'application/json'
            }
        });
    }
}


export default api